﻿<%@ Page Language="C#" MasterPageFile="~/MainPage.master" AutoEventWireup="true"
    CodeFile="Shippers.aspx.cs" Inherits="Shippers" Title="Shippers" %>

<asp:Content ID="webShippersTitle" ContentPlaceHolderID="cphTitle" runat="server">
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">
                Shippers
            </h1>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="Home.aspx">Home</a> </li>
                <li class="active"><i class="fa fa-file"></i>Shippers </li>
            </ol>
        </div>
    </div>
</asp:Content>

<asp:Content ID="webShippers" ContentPlaceHolderID="cphMainPage" runat="Server">
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Untitled Page</title>
        <link href="css/CSSGridView1.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1">
        <div>
            
                    
                        <table border="0" cellpadding="1" cellspacing="1" width="100%">
                            <tr>
                                <td style="width: 13%; height: 30px;">
                                    Shipper ID:
                                </td>
                                <td style="height: 30px">
                                    <asp:TextBox ID="txtShipperid" runat="server" Enabled="False"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 13%; height: 30px;">
                                    Company Name:
                                </td>
                                <td style="height: 30px">
                                    <asp:TextBox ID="txtCompanyName" runat="server" MaxLength="40"></asp:TextBox>
                                    <asp:RequiredFieldValidator ID="rfvCompanyName" runat="server" ErrorMessage="Enter Company Name"
                                        ControlToValidate="txtCompanyName"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 13%; height: 30px;">
                                    Phone:
                                </td>
                                <td style="height: 30px">
                                    <asp:TextBox ID="txtPhone" runat="server" MaxLength="24"></asp:TextBox>
                                    <asp:RegularExpressionValidator ID="revPhone" runat="server" ControlToValidate="txtPhone"
                                        ErrorMessage="(999) 000-000" 
                                        ValidationExpression="((\(\d?\d?\d\) ?)|(\d{3}-))?\d{3}-\d{4}" 
                                        Display="Dynamic"></asp:RegularExpressionValidator>
                        <asp:RequiredFieldValidator ID="rfvPhone" runat="server" ErrorMessage="Enter Phone"
                            ControlToValidate="txtPhone" Display="Dynamic"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 13%; height: 40px;">
                                    <asp:Button ID="btnNew" runat="server" Text="New" Width="65px" OnClick="btnNew_Click"
                                        CausesValidation="False" />
                                    <asp:Button ID="btnAdd" runat="server" Text="Add" Width="65px" OnClick="btnAdd_Click" />
                                </td>
                                <td style="height: 40px">
                                    <asp:Button ID="btnUpdate" runat="server" Text="Update" Width="65px" OnClick="btnUpdate_Click"
                                        Enabled="False" />
                                    <asp:Button ID="btnDelete" runat="server" Text="Delete" Width="65px" OnClick="btnDelete_Click"
                                        Enabled="False" CausesValidation="False" />
                                </td>
                            </tr>
                            <tr>
                                <td rowspan="1" style="width: 13%; height: 30px;">
                                    <asp:Button ID="btnShowAll" runat="server" Text="Refresh" Width="100px" OnClick="btnShowAll_Click"
                                        CausesValidation="False" />
                                </td>
                                <td style="height: 30px">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td style="width: 13%">
                                    <asp:DropDownList ID="ddlSearch" runat="server" Height="25px">
                                        <asp:ListItem Selected="True">ID</asp:ListItem>
                                        <asp:ListItem>CompanyName</asp:ListItem>
                                    </asp:DropDownList>
                                </td>
                                <td>
                                    <asp:TextBox ID="txtSearch" runat="server"></asp:TextBox>
                                    <asp:Button ID="btnSearch" runat="server" Text="Search" Width="100px" OnClick="btnSearch_Click"
                                        CausesValidation="False" />
                                </td>
                            </tr>
                        </table>
                   
                    <tr>
                        <asp:GridView ID="gvShippers" runat="server" OnPageIndexChanging="gvShippers_PageIndexChanging"
                            OnSelectedIndexChanged="gvShippers_SelectedIndexChanged" CssClass="Grid" 
                            AlternatingRowStyle-CssClass="alt" PagerStyle-CssClass="pgr" 
                            AllowSorting="True" onsorting="gvShippers_Sorting">
<PagerStyle CssClass="pgr"></PagerStyle>

                            <SelectedRowStyle ForeColor="#0066FF" />

<AlternatingRowStyle CssClass="alt"></AlternatingRowStyle>
                        </asp:GridView>
                    </tr>
            
        </div>
        </form>
    </body>
    </html>
</asp:Content>
